package com.central.scheduler.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author Tindy
 * @date 2021/11/1
 * @describe
 * process definition log
 */
@TableName("sch_process_definition_log")
public class ProcessDefinitionLog extends ProcessDefinition {


    public ProcessDefinitionLog() {
        super();
    }

    public ProcessDefinitionLog(ProcessDefinition processDefinition) {
        this.setCode(processDefinition.getCode());
        this.setName(processDefinition.getName());
        this.setVersion(processDefinition.getVersion());
        this.setReleaseState(processDefinition.getReleaseState());
        this.setProId(processDefinition.getProId());
        this.setProName(processDefinition.getProName());
        this.setDescription(processDefinition.getDescription());
        this.setGlobalParams(processDefinition.getGlobalParams());
        this.setGlobalParamMap(processDefinition.getGlobalParamMap());
        this.setTaskNodeParams(processDefinition.getTaskNodeParams());
        this.setScheduleReleaseState(processDefinition.getScheduleReleaseState());
        this.setTimeout(processDefinition.getTimeout());
        this.setWarningGroupId(processDefinition.getWarningGroupId());
        this.setTaskRelationList(processDefinition.getTaskRelationList());
        this.setTmp(processDefinition.isTmp());
    }
}
